package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Integral;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IntegralMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Integral record);

    Integral selectByPrimaryKey(Long id);

    List<Integral> selectAll();

    int updateByPrimaryKey(Integral record);

    Integral  selectByUserId(Long userId);

    void updateByUserId(Long id);

    void updateIntegral(@Param("integral") int integral, @Param("id") Long id);
}